import uniFetch from "@/utils/uni-fetch";

/*账号登录的接口*/
export const accountLoginAPI = (data) => uniFetch.post("/driver/login/account", data);
/*发送验证码的接口*/
export const sendCodeAPI = (params) => uniFetch.get("https://consult-api.itheima.net/code", params);
/*手机号登录的接口*/
export const mobileLoginAPI = (data) => uniFetch.post("https://consult-api.itheima.net/login", data);
/*获取用户信息的接口*/
export const fetchUserInfoAPI = () => uniFetch.get("/driver/users");
/*获取车辆信息的接口*/
export const fetchTruckInfoAPI = () => uniFetch.get("/driver/users/truck");
/*获取任务信息的接口*/
export const fetchTaskReportInfoAPI = (params) => uniFetch.get("/driver/users/taskReport",params);
